package homework;

public class Vehicle {
    private int speed;
    private int size;

    public Vehicle() {
    }

    public Vehicle(int speed, int size) {
        this.speed = speed;
        this.size = size;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public void move(){

    }

    public void speedUp(int addSpeed){
        this.setSpeed(this.getSpeed() + addSpeed);
    }
    public void speedDown(int subSpeed){
        this.setSpeed(this.getSpeed() - subSpeed);
    }
}
